import request from '@/utils/request'
// 获取关键词列表
export function keywordList(query) {
  return request({
    url: '/system/field/keyword',
    method: 'get',
    params: query
  })
}
export function listFieldType(query) {
  return request({
    url: '/system/field/list',
    method: 'get',
    params: query
  })
}

export function listAllFieldType(query) {
  return request({
    url: '/system/field/list/all',
    method: 'get',
    params: query
  })
}

// 查询账号信息详细
export function getFieldType(id) {
  return request({
    url: '/system/field/' + id,
    method: 'get'
  })
}

// 新增分类
export function addFieldType(data) {
  return request({
    url: '/system/field',
    method: 'post',
    data: data
  })
}

// 修改账号信息
export function updateFieldType(data) {
  return request({
    url: '/system/field',
    method: 'put',
    data: data
  })
}

// 删除账号信息
export function delFieldType(id) {
  return request({
    url: '/system/field/' + id,
    method: 'delete'
  })
}
